﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.NET.Application
{
    /// <summary>
    /// APP任务功能接口
    /// </summary>
    public interface ITaskService
    {
        /// <summary>
        /// 发布任务
        /// </summary>
        /// <returns></returns>
        Task<object> PostTaskPublish(TaskPublishDto taskPublish);
        /// <summary>
        /// 任务执行
        /// </summary>
        /// <param name="state"></param>
        /// <returns></returns>
        Task<object> PostTaskDone(TaskDoneDto state);
        /// <summary>
        /// 上传现场图片
        /// </summary>
        /// <param name="SceneImgList"></param>
        /// <returns></returns>
        Task<object> PostTaskDoneFile(List<IFormFile> SceneImgList);
        /// <summary>
        /// 任务列表
        /// </summary>
        /// <param name="roleType"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<List<TaskListDto>> GetTaskList(string roleType, int pageIndex, int pageSize);
        /// <summary>
        /// 任务审核
        /// </summary>
        /// <param name="Review"></param>
        /// <returns></returns>
        Task<object> PostTaskReview(TaskReviewDto Review);
        /// <summary>
        /// 任务详情
        /// </summary>
        /// <param name="planName"></param>
        /// <returns></returns>
        Task<TaskDetailDto> GetTaskDetail(long planId);
    }
}
